package lion.crawl.fetch;

import lion.dev.lang.MapJ;

/**
 * @author Helin
 * @date 2012-8-12
 * @email hl_0074@sina.com
 * @desc
 */
public class Content {

	private MapJ headers = new MapJ();
	private byte[] content;

	public MapJ getHeaders() {

		return headers;
	}

	public void setHeader(String key, String value) {

		this.headers.put(key, value);
	}

	public byte[] getContent() {

		return content;
	}

	public void setContent(byte[] content) {

		this.content = content;
	}

	public String getHeader(String key) {

		return this.headers.getString(key);
	}
}
